unit RelatorioPedido;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, UFormRelatorio, DB, DBTables, QRCtrls, QuickRpt, ExtCtrls,
  StdCtrls;

type
  TFRelatorioPedido = class(TFormRelatorio)
    QRGroup1: TQRGroup;
    QRBand2: TQRBand;
    QRBand3: TQRBand;
    QRDBText7: TQRDBText;
    QRDBText8: TQRDBText;
    QRDBText9: TQRDBText;
    QRDBText10: TQRDBText;
    QRDBText11: TQRDBText;
    QRLabel11: TQRLabel;
    QRLabel12: TQRLabel;
    QRLabel13: TQRLabel;
    QRLabel14: TQRLabel;
    QRLabel15: TQRLabel;
    QRLabel16: TQRLabel;
    QRExpr1: TQRExpr;
    QRExpr2: TQRExpr;
    QRExpr3: TQRExpr;
    QRShape3: TQRShape;
    QRExpr4: TQRExpr;
    QRLabel6: TQRLabel;
    QRLabel7: TQRLabel;
    QRLabel8: TQRLabel;
    QRExpr7: TQRExpr;
    QRDBText16: TQRDBText;
    QRLabel9: TQRLabel;
    QRLabel10: TQRLabel;
    QRLabel18: TQRLabel;
    QRLSituacaoPedidos: TQRLabel;
    QRLabel20: TQRLabel;
    QRLSituacaoItens: TQRLabel;
    QRDBText1: TQRDBText;
    QRDBText2: TQRDBText;
    QRDBText3: TQRDBText;
    QRDBText4: TQRDBText;
    QRDBText5: TQRDBText;
    QRLabel21: TQRLabel;
    QRLabel22: TQRLabel;
    QRLabel23: TQRLabel;
    QRLabel24: TQRLabel;
    QRLabel25: TQRLabel;
    QRLabel26: TQRLabel;
    QRLabel5: TQRLabel;
    QRDBText14: TQRDBText;
    QRShape4: TQRShape;
    QRExpr5: TQRExpr;
    QRShape5: TQRShape;
    QRExpr6: TQRExpr;
    QRExpr8: TQRExpr;
    QRExpr9: TQRExpr;
    QRShape1: TQRShape;
    procedure FormCreate(Sender: TObject);
    procedure QRBand1BeforePrint(Sender: TQRCustomBand;
      var PrintBand: Boolean);
    procedure QRBand3BeforePrint(Sender: TQRCustomBand;
      var PrintBand: Boolean);
    procedure QRLabel3Print(sender: TObject; var Value: String);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FRelatorioPedido: TFRelatorioPedido;

implementation

uses UGeral;

{$R *.dfm}

procedure TFRelatorioPedido.FormCreate(Sender: TObject);
begin
  inherited;
 Q:=TQuery.Create(Self);
 q.DatabaseName:=QRelatorio.DatabaseName;
 q.Close;
 q.SQL.Clear;
 q.SQL.Add('Select Emp_Razao as Razao from empresa ');
 q.SQL.Add('Where Emp_Codigo = :Cod ');
 q.ParamByName('Cod').AsInteger:=Codigoempresa;
 q.Open;
 QRLNomeEmpresa.Caption:=q.fieldByname('Razao').AsString;

end;

procedure TFRelatorioPedido.QRBand1BeforePrint(Sender: TQRCustomBand;
  var PrintBand: Boolean);
begin
 // inherited;

end;

procedure TFRelatorioPedido.QRBand3BeforePrint(Sender: TQRCustomBand;
  var PrintBand: Boolean);
begin
  inherited;
  QRShape4.Height:=1;
  QRShape3.Height:=1;
  QRShape5.Height:=1;
end;

procedure TFRelatorioPedido.QRLabel3Print(sender: TObject;
  var Value: String);
begin
  inherited;
value:='';
end;

end.
